package main.java.model;

import java.util.Collection;

import main.java.constant.SessionKey;

import org.springframework.security.core.GrantedAuthority;

public class MyUserDetails extends org.springframework.security.core.userdetails.User{
	private UserInfoBasicModel userInfoBasicModel = null;
	
	public MyUserDetails(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities,
			UserInfoBasicModel userInfoBasicModel
			) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
	}

	public UserInfoBasicModel getUserInfoBasicModel() {
		return userInfoBasicModel;
	}

	public void setUserInfoBasicModel(UserInfoBasicModel userInfoBasicModel) {
		this.userInfoBasicModel = userInfoBasicModel;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = SessionKey.JMunersSerialVersionUID;
}
